# 上传文件
import time

# from selenium import webdriver
# import os
# driver = webdriver.Chrome()
# file = "file:///" + os.path.abspath("e:/比特课件/selenium2html/upload.html")
# driver.get(file)
# driver.maximize_window()
# driver.find_element_by_tag_name("input").send_keys("e:/画图板/aaa.jpg")
# time.sleep(3)
# driver.quit()

from selenium import webdriver
import time
import os
driver=webdriver.Chrome()
file="file:///"+os.path.abspath("e:/比特课件/selenium2html/upload.html")
driver.get(file)
driver.find_element_by_tag_name("input").send_keys("e:/画图板/aaa.jpg")
time.sleep(4)
driver.quit()